package com.greenyoung.pwiki.oss.config;

import com.greenyoung.pwiki.oss.consts.ConstMq;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig {
    @Bean
    public Queue elQueue() {
        return new Queue(ConstMq.ELASTICSEARCH_INDEX_QUEUE);
    }

}
